<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>更新记录</title>
    <link rel="stylesheet" href="<%=basePath%>css/Project_History.css">
    <title>Title</title>
    <script>
        window.onload = function () {
            var list=new Array("groups","progess","wType","wName","pdetail","sTime","eTime","leader","checker","kehuer","others1","others2","remarks","items");
            for (var j=0;j<list.length;j++){
                var cc=document.getElementsByClassName(list[j]);
                for (var i = 0; i < cc.length; i++) {
                    if(i!=cc.length-1 && cc[i].innerHTML!=cc[i+1].innerHTML){
                        var c=document.getElementsByClassName(list[j]).item(i);
                        c.style.color="red";
                    }
                }
            }
        };
    </script>
</head>
<body>
<table class="new_project">
    <tbody class="new_title">
    <tr>
        <th>序号</th>
        <th>变更时间</th>
        <th>变更人</th>
        <th>项目组</th>
        <th>项目进度</th>

        <th>工作类别</th>
        <th>项目名称</th>
        <th>项目情况</th>
        <th>项目开始时间</th>
        <th>交付时间</th>

        <th>项目负责人</th>
        <th>审核人</th>
        <th>客户负责人</th>
        <th>订阅人</th>
        <%--<th>其他2</th>--%>

        <th>备注说明</th>
        <c:forEach var="cc" items="${columns}">
            <th>${cc.prop}</th>
        </c:forEach>
    </tr>
    </tbody>
    <c:forEach var="c" items="${requestScope.list}" varStatus="status">
        <tr class="new_data">
            <td> ${status.index+1} </td>
            <td><fmt:formatDate value="${c.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td>${c.updateUser}</td>
            <td class="groups">${c.groups}</td>
            <td class="progess">${c.progess}</td>

            <td class="wType">${c.wType}</td>
            <td class="wName">${c.wName}</td>
            <td class="pdetail">${c.pdetail}</td>
            <td class="sTime">${c.sTime}</td>
            <td class="eTime">${c.eTime}</td>

            <td class="leader">${c.leader}</td>
            <td class="checker">${c.checker}</td>
            <td class="kehuer">${c.kehuer}</td>
            <td class="others1">${c.others1}</td>
            <%--<td class="others2">${c.others2}</td>--%>

            <td class="remarks">${c.remarks}</td>
            <c:forEach var="items" items="${items}">
                <c:if test="${items.historyPid!=null && items.historyPid==c.id}"><td class="items">${items.value}</td></c:if>
            </c:forEach>
        </tr>
    </c:forEach>
</table>
<div class="returns">
    <a class="out_History" href="/findLogs" title="返回"><span>返回</span></a>
</div>
<script>
</script>
</body>
</html>
